package com.runshu.newsmartark.util.common;

import java.util.Iterator;
import java.util.List;

public class StringUtil {
    public static String listToStr(List<String>list){
        StringBuffer str2 = new StringBuffer();
        for (Iterator<String> iterator = list.iterator(); iterator.hasNext();) {
            String string = (String) iterator.next();
            str2.append(string);
            if(iterator.hasNext()){
                str2.append(",");
            }
        }
        return str2.toString();
    }


    public static String[] toStringArray(List<String> strList) {
        String[] array = new String[strList.size()];
        strList.toArray(array);
        return array;
    }

    public static boolean changeWeather(String str){

        if (str.equals("00:00")||str.equals("01:00")||str.equals("02:00")){

        }
        return false;
    }
}
